﻿namespace Digitalmes.Core.Models;

/// <summary>
/// API 接口请求返回结果。
/// </summary>
/// <typeparam name="TData"></typeparam>
public sealed class ApiResult<TData>
{
    /// <summary>
    /// 业务状态码
    /// </summary>
    public int Code { get; set; }

    /// <summary>
    /// 消息
    /// </summary>
    public string? Message { get; set; }

    /// <summary>
    /// 业务数据
    /// </summary>
    public TData? Data { get; set; }
}
